package com.ugoodtech.mdcc.core.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

@ApiModel("获取报告操作记录")
@Entity
@Table(name = "service_report_historical_recorder")
public class ServiceReportHistoricalRecorder extends BaseEntity {

    @ApiModelProperty("常规报告")
    private StationReport stationReport;

    @ApiModelProperty("操作人")
    private User user;

    @ApiModelProperty("操作类型")
    private String type;

    @ApiModelProperty("操作日志")
    private String note;

    @JsonIgnore
    @ManyToOne
    @JoinColumn(name = "report_id")
    public StationReport getStationReport() {
        return stationReport;
    }

    public void setStationReport(StationReport stationReport) {
        this.stationReport = stationReport;
    }

    @JsonIgnore
    @ManyToOne
    @JoinColumn(name = "user_id")
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Column(name = "type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Column(name = "note")
    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
}
